package com.jhgsys.internal.accident.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jhgsys.internal.common.entity.BaseEntity;

import com.fasterxml.jackson.annotation.JsonFormat;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;


/**
 *  Entity
 *
 * @author zjb
 * @date 2024-09-13 10:24:35
 */
@Data
@TableName("accident_report_timeline")
public class AccidentReportTimeline extends BaseEntity implements Serializable {

    /**
     * 主键
     */
    @TableId(value = "report_timeline_id", type = IdType.ASSIGN_UUID)
    private String reportTimelineId;

    /**
     * 公司Id
     */
    @TableField("tenant_id")
    @NotBlank(message = "{required}")
    private String tenantId;

    /**
     * 事故报告Id
     */
    @TableField("report_id")
    @NotBlank(message = "{required}")
    private String reportId;

    /**
     * 时间
     */
    @TableField("accident_time")
    @NotNull(message = "{required}")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date accidentTime;

    /**
     * 描述
     */
    @TableField("accident_content")
    @NotBlank(message = "{required}")
    private String accidentContent;

}